/* $RCSFile: ADNDynPluginassembly.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/CRMWrapper3/DynEntities/ADNDynPluginassembly.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:33  christian.surieux
 *   Added Log to All cs files
 */

/* Copyrights Christian Surieux 2010 */
/* Class ADNDynPluginassembly */
/* Date 2010-01-06 16:10:30Z */

using System;
using System.Diagnostics;
using System.Collections;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using CrmSdk;

namespace AddonNice.CRMWrapper
{
    public class ADNDynPluginassembly : DynEntity
    {
        protected class Ftor: DFactor
        {
            public Ftor() : base(CrmStr.pluginassembly)
            {}

            public override Type DynType
            { get { return typeof(ADNDynPluginassembly); } }

            public override string DynTypename
            {   get{ return CrmStr.pluginassembly;}}

            public override DynEntity Build()
            {   return new ADNDynPluginassembly();}

            public override DynEntity Build(CRMWrapperBase w, InternalDynamicEntity dEntity, PropertyDescriptorCollection wproperties)
            {   return new ADNDynPluginassembly(w, dEntity, wproperties, null);}

            public override DynEntity Build(CRMWrapperBase w, string PrimaryFieldValue)
            {   return new ADNDynPluginassembly(w,PrimaryFieldValue);}

            public override DynEntity Build(CRMWrapperBase w,Guid PrimaryKeyValue)
            {   return new ADNDynPluginassembly(w,PrimaryKeyValue);}
        }

        static ADNDynPluginassembly(){new Ftor();} 
        
        public override bool HasOwnerProperty
        {
            get { return false; }
        }
        
        public override bool HasPrimaryField
        {
            get
            { return false; }
        }

        public ADNDynPluginassembly() : base() { }
        
        public ADNDynPluginassembly(CRMWrapperBase w,string PrimaryFieldValue)
            : base(w,CrmStr.pluginassembly)
        { }
        
        public ADNDynPluginassembly(CRMWrapperBase w,Guid CrmId) : base(w,CrmStr.pluginassembly,CrmId) { }
        
        public ADNDynPluginassembly(CRMWrapperBase w,InternalDynamicEntity e) : base(w,CrmStr.pluginassembly,e,null,null) { }
        
        public ADNDynPluginassembly(CRMWrapperBase w,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(w,CrmStr.pluginassembly,e,prop,s) { }
        
        public ADNDynPluginassembly(ResetWrapperHandler fn,string PrimaryFieldValue)
            : base(fn,CrmStr.pluginassembly)
        { }
        
        public ADNDynPluginassembly(ResetWrapperHandler fn,Guid CrmId) : base(fn,CrmStr.pluginassembly,CrmId) { }
        
        public ADNDynPluginassembly(ResetWrapperHandler fn,InternalDynamicEntity e) : base(fn,CrmStr.pluginassembly,e,null,null) { }
        
        public ADNDynPluginassembly(ResetWrapperHandler fn,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(fn,CrmStr.pluginassembly,e,prop,s) { }

        /* Properties */

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public Guid pluginassemblyid
        {
            get
            { return KeyPropertyValue(CrmStr.pluginassemblyid); }
            set
            { AddKeyProperty(CrmStr.pluginassemblyid,value); }
        }

        protected override void SetCrmIdProperty(Guid crmId)
        {
            if ( !dicProperty.ContainsKey(CrmStr.pluginassemblyid) || KeyPropertyValue(CrmStr.pluginassemblyid) != crmId )
                pluginassemblyid = crmId;
        }
        public override Guid PrimaryKeyGuidValue
        {
            get
            { return pluginassemblyid; }
            set { pluginassemblyid = value; }
        }
        [CrmDynAttribute(CrmStr.pluginassembly)]
        public string content
        {
            get
            { return StringPropertyValue(CrmStr.content); }
            set
            { AddStringProperty(CrmStr.content,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public string culture
        {
            get
            { return StringPropertyValue(CrmStr.culture); }
            set
            { AddStringProperty(CrmStr.culture,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public int customizationlevel
        {
            get
            { return NumberPropertyValue(CrmStr.customizationlevel); }
            set
            { AddNumberProperty(CrmStr.customizationlevel,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public override string name
        {
            get
            { return StringPropertyValue(CrmStr.name); }
            set
            { AddStringProperty(CrmStr.name,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public override Guid organizationid
        {
            get
            { return LookupPropertyValue(CrmStr.organizationid); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public string path
        {
            get
            { return StringPropertyValue(CrmStr.path); }
            set
            { AddStringProperty(CrmStr.path,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public Guid pluginassemblyidunique
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.pluginassemblyidunique); }
            set
            { AddUniqueIdentifierProperty(CrmStr.pluginassemblyidunique,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public string publickeytoken
        {
            get
            { return StringPropertyValue(CrmStr.publickeytoken); }
            set
            { AddStringProperty(CrmStr.publickeytoken,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public string sourcehash
        {
            get
            { return StringPropertyValue(CrmStr.sourcehash); }
            set
            { AddStringProperty(CrmStr.sourcehash,value); }
        }

        [CrmDynAttribute(CrmStr.pluginassembly)]
        public int sourcetype
        {
            get
            { return PicklistPropertyIntValue(CrmStr.sourcetype); }
            set
            { AddPicklistProperty(CrmStr.sourcetype,value); }
        }
    }
}